Back out the last solution to updating problem. And try a different one
authorOwen Taylor <otaylor@redhat.com>
Tue, 26 Jan 1999 00:28:13 +0000 (00:28 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 26 Jan 1999 00:28:13 +0000 (00:28 +0000)
Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkcolorsel.c (gtk_color_selection_value_events):
 Back out the last solution to updating problem. And
 try a different one that is less dependent on
 the state of the widget. Just redraw the value_marker
 when it gets mapped. Somebody needs to analyze
 this widget more carefully and figure out

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcolorsel.c

index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 7d2ef736287b169bcfb9dbbe7bfcbc931471523c..af4978a4ba80bd6334052a811b645a21516f341e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jan 25 19:00:13 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_value_events): 
+        Back out the last solution to updating problem. And
+        try a different one that is less dependent on
+        the state of the widget. Just redraw the value_marker
+        when it gets mapped. Somebody needs to analyze
+        this widget more carefully and figure out 
+
 Mon Jan 25 17:48:03 1999  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE()
index 540aafa4df2bda97e030e557a212e846a80860c8..79618e74d83b9edf4b8f848c8c26c6802e6e61dc 100644 (file)
@@ -490,11 +490,12 @@ gtk_color_selection_set_color (GtkColorSelection *colorsel,
 
   gtk_color_selection_update_inputs (colorsel, RGB_INPUTS | HSV_INPUTS | OPACITY_INPUTS, BOTH);
 
-  gtk_color_selection_draw_value_bar (colorsel, FALSE);
-  gtk_color_selection_draw_sample (colorsel, FALSE);
-
   if (GTK_WIDGET_DRAWABLE (GTK_WIDGET (colorsel)))
-    gtk_color_selection_draw_wheel_marker (colorsel);
+    {
+      gtk_color_selection_draw_value_bar (colorsel, FALSE);
+      gtk_color_selection_draw_sample (colorsel, FALSE);
+      gtk_color_selection_draw_wheel_marker (colorsel);
+    }
 }
 
 void
@@ -818,7 +819,8 @@ gtk_color_selection_set_opacity (GtkColorSelection *colorsel,
       gtk_widget_show (colorsel->entries[OPACITY]);
     }
 
-  gtk_color_selection_draw_sample (colorsel, FALSE);
+  if (GTK_WIDGET_DRAWABLE (colorsel->sample_area))
+    gtk_color_selection_draw_sample (colorsel, FALSE);
 }
 
 static void
@@ -1052,6 +1054,7 @@ gtk_color_selection_value_events (GtkWidget *area,
   switch (event->type)
     {
     case GDK_MAP:
+      gtk_color_selection_draw_value_bar (colorsel, FALSE);
       gtk_color_selection_draw_value_marker (colorsel);
       break;
     case GDK_EXPOSE: